package com.tust.app.service;

import com.tust.app.domain.Answer;

import java.util.List;

public interface AnswerService {


    int deleteByPrimaryKey(Integer id);

    int insert(Answer record);

    int insertOrUpdate(Answer record);

    int insertOrUpdateSelective(Answer record);

    int insertSelective(Answer record);

    Answer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Answer record);

    int updateByPrimaryKey(Answer record);

    int updateBatch(List<Answer> list);

    int updateBatchSelective(List<Answer> list);

    int batchInsert(List<Answer> list);

    List<Answer> answersList();

    List<Answer> serchByUserName(String username);

    List<Answer> selectByTopicId(Integer id);

}
